<?php namespace App\Http\Middleware;

use Closure;
use Illuminate\Support\Facades\Config;

class AdminAuth {

	/**
	 * Handle an incoming request.
	 *
	 * @param  \Illuminate\Http\Request  $request
	 * @param  \Closure  $next
	 * @return mixed
	 */
	public function handle($request, Closure $next)
	{
//        /** 后台登录模块 */
//        Config::set('auth.model' , 'App\admins');
//        Config::set('auth.table' ,'admins');
//
//        if(Auth::check()){
//
//        }else{
//           /** 验证失败处理 */
//            dd('error');
//        }

		return $next($request);
	}

}
